﻿							<div class="col-md-16">
								<!-- BOX -->
								<div class="box border primary">
									<div class="box-title">
										<h4><i class="fa fa-file-text-o"></i>用户列表</h4>
										<div class="tools">
											<a href="#box-config" data-toggle="modal" class="config">
												<i class="fa fa-cog"></i>
											</a>
											<a href="javascript:;" class="reload">
												<i class="fa fa-refresh"></i>
											</a>
											<a href="javascript:;" class="collapse">
												<i class="fa fa-chevron-up"></i>
											</a>
											<a href="javascript:;" class="remove">
												<i class="fa fa-times"></i>
											</a>
										</div>
									</div>
									<div class="box-body">
										<table id="example-paper" class="table table-paper table-striped">
											<thead>
											  <tr>
												<th>#</th>
												<th>用户名</th>
												<th>密码</th>
												<th>性别</th>
												<th>年龄</th>
												<th>出生日期</th>
												<th>住址</th>
												<th>是否在职</th>
												<th>职位</th>
												<th style="width:140px;text-align:center;">操作</th>
											  </tr>
											</thead>
											<tbody>

											<?php
													if(!empty($date)){
													foreach($date as $v){?>
														  <tr>
															<td><?php echo $v['id']?></td>
															<td><?php echo $v['username']?></td>
															<td><?php echo $v['password']?></td>
															<td><?php echo $v['sex']?></td>
															<td><?php echo $v['age']?></td>
															<td><?php echo $v['birthday']?></td>
															<td><?php echo $v['address']?></td>
															<td><?php echo ($v['status']==1)?"在职":"离职"?></td>
															<td><?php echo $v['position']?></td>
															<td style="width:140px">
																<a class="btn btn-success" href="index.php?c=admin&&a=edit&&admin=1&&id=<?php echo $v['id']?>">编辑</a>
																<a class="btn btn-danger" onclick="return confirm('确定要删除吗')" href="index.php?c=admin&&a=del&&admin=1&&id=<?php echo $v['id']?>" >删除</a>
															</td>
														  </tr>
											<?php }} ?>

											</tbody>

										  </table>
									</div>
									<div id="datatable1_paginate" class="dataTables_paginate paging_bs_full">
									   		<ul class="pagination">

									   			<?=$page_str?>
						   					</ul>
				   					</div>
								</div>
								<!-- /BOX -->

							</div>